package com.li.pojo;

import org.springframework.aop.AfterAdvice;
import org.springframework.aop.AfterReturningAdvice;
import org.springframework.stereotype.Component;

import java.lang.reflect.Method;
import java.util.Arrays;
@Component
public class Afterlog implements AfterReturningAdvice {


    public void afterReturning(Object o, Method method, Object[] objects, Object o1) throws Throwable {
        System.out.println("o = " + o + ", method = " + method + ", objects = " + Arrays.deepToString(objects) + ", o1 = " + o1);
    }
}
